package com.teamone.etl.apimanager.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: SixJin
 * @Date: 2021/1/20 20:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    /**
     * 当前页，默认1
     */
    public Integer pageNum;
    /**
     * 每页记录数，默认10
     */
    public Integer pageSize;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum==null?1:pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize==null?10:pageSize;
    }
}
